export const validEmail = [
  { required: true, message: "请输入邮箱", trigger: "blur" },
  {
    pattern:
      /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(?:\.[a-zA-Z]{2,})?$/,
    message: "请输入正确的邮箱格式",
    trigger: "blur",
  },
];
export const validPassword = [
  { required: true, message: "请输入密码", trigger: "blur" },
  {
    pattern: /^[a-zA-Z0-9_-]{6,16}$/,
    message: "密码由6-16个字母、数字、下划线或减号组成",
    trigger: "blur",
  },
];
